﻿@{
    var hotDocs = News.CYT369.Com.Service.DocumentService.Instance.GetHotDocuments();
    int hotIndex = 1;
}
<div class="hot-arts">
    <div class="panel-name">热门文章</div>
    <ul class="hot-list">
        @foreach (var doc in hotDocs)
        {
            var url = Url.Content($"~/Articles/CView/{Base64.ObjectToBase64(new { DocID = doc.Id })}.chtml");
            <li>
                <a href="@url" title="@doc.Title" class="hot-doc-item" target="_blank">
                    <div class="num">@(hotIndex++)</div><div class="text">@doc.Title</div>
                </a>
            </li>
        }
    </ul>
</div>